package test.presenter;

import com.google.inject.Inject;
import ms.aurora.app.AppWindow;
import ms.aurora.mvp.AbstractPresenter;
import ms.aurora.mvp.IView;
import ms.aurora.routing.ModelObserver;
import test.model.DefaultModel;

public class DefaultPresenter extends
        AbstractPresenter<DefaultPresenter.MyView> implements DefaultCallback,
        ModelObserver {
    @Inject
    private DefaultModel defaultModel;

    @Inject
    public DefaultPresenter(AppWindow appWindow, MyView view) {
        super(appWindow, view);
    }

    public interface MyView extends IView {

    }

    @Override
    public void onModelChanged(String valueName) {

    }

    @Override
    public void show() {
        getAppWindow().setInSlot("mainSlot", getView().asComponent());
    }
}
